var React = require('react');
var ListView = require('../../controls/ListView');
module.exports = React.createClass({
	getInitialState: function () {
		return {

		}
	},
	componentDidMount:function(){

	},
	itemRender: function (item, index) {
		return <ul>
			<li><span>字段名：</span>{item.Field}</li>
			<li><span>默认值：</span>{item.Default}</li>
			<li><span>类型：</span>{item.Type}</li>
			<li><span>是否可为空：</span>{item.Null}</li>
			<li><span>是否主键：</span>{item.Key}</li>
			<li><span>扩展：</span>{item.Extra}</li>
		</ul>;
	},
	render:function(){
		return (
			<ListView
				itemRender={this.itemRender}
				data={this.props.fields} />
		);
	}
});
